package com.every.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.every.entity.EmailUser;
import com.every.mapper.EmailUserMapper;
import com.every.service.EmailUserService;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @description: 邮件发送用户
 * @author: yh
 * @date: 2022/11/1
 */
@Service
public class EmailUserImpl extends ServiceImpl<EmailUserMapper, EmailUser> implements EmailUserService {
    /**
     * 查询发送邮件用户
     * @author yh
     * @date 2022/11/1
     * @return List<EmailUser>
     */
    @Override
    public List<EmailUser> queryList(){
        LambdaQueryWrapper<EmailUser> wrapper = new LambdaQueryWrapper<>();
        wrapper.eq(EmailUser::getHasSend, true);
        return baseMapper.selectList(wrapper);
    }
}
